<?php 
namespace Home\Controller;
use Think\Controller;
class CommonController extends Controller{
	public function _initialize(){
		if(!$_SESSION['login'] || !$_SESSION['admin']){
			$this->error('您还没有登录，请登录!',U('Login/index'),1);
			exit;
		}
	}
}
 ?>